﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>{key}-{sdcms[webname]}{sdcms[seotitle]}</title>
<link href="{webroot}lib/css/base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/public.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/artlist.css" rel="stylesheet" type="text/css" />
<script>var webroot="{webroot}";</script>
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
{if sdcms[sys_mobile]}<script src="{webroot}lib/js/mobile.js"></script>{/if}
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
</head>

<body>
    {sdcms:include("sdcms_head.asp")}
    
    <div id="position">您所在的位置：<a href="{webroot}">首页</a> > 站内搜索</div>
    <div class="w980 mt10 mc" id="container">
        <div class="left">
            <div class="w610 b">
                <div class="title">搜索结果</div>
                <ul class="newslist">
                {sdcms:rs field="id,title,style,createdate,isurl,url,classid,intro" table="sd_content" where="islock=1[sql_where]" order="ontop desc,id desc" pagesize="20" isadminurl="0"}
                    {rs:eof}<dt>没有找到您要的内容</dt>{/rs:eof}
                    <li><span>{sdcms.getdate($rs[createdate],"-",1)}</span><a href="{$rs[link]}" title="{$rs[title]}" target="_blank" {$rs[style]}>{sdcms.highlight(sdcms.cutstr($rs[title],50,1),key)}</a></li>
                    <li class="intro">{sdcms.highlight(sdcms.cutstr(sdcms.nohtml($rs[intro]),180,1),key)}</li>
                {/sdcms:rs}
                </ul>
                <div class="list_page">{showpage}</div>
            </div>
        </div>
        <div class="right">
            <div class="b">
                <div class="subject">高级搜索</div>
                <div class="p10">
                <form action="{webroot}plug/search.asp" method="get" onsubmit="return checksearch(this)">
                <ul class="hsearch">
                    <li><div>关键字：</div><input type="text" name="key" class="ip w" value="{key}" /></li>
                    <li><div>类别选择：</div><select name="classid" class="w"><option value="0">不限类别</option>{sdcms:rs top="0" table="sd_category" where="followid=0 and modeid>0" order="ordnum,cateid" }
                <option value="{$rs[cateid]}"{if clng(classid)=$rs[cateid]} selected="selected"{/if}>{$rs[catename]}</option>
                {/sdcms:rs}</select></li>
                    <li><input type="submit" value="搜索" class="bnt" /></li>
                </ul>
                </form>
                </div>
            </div>
            <div class="b mt10">
                <div class="subject">热门搜索</div>
                <ul class="toplist">
                    {sdcms:rs table="sd_expand_keyword" top="10" where="islock=1" order="hits desc,id desc"}
                    <li><a href="{webroot}plug/search.asp?key={server.urlencode($rs[title])}" title="{$rs[title]}">{sdcms.cutstr($rs[title],30,1)}</a></li>{/sdcms:rs}
                </ul>
            </div>
        </div>
    </div>
    {sdcms:include("sdcms_foot.asp")}